<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-CN">

<head>
    {% load static %}
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <title>登录</title>

    <link rel="stylesheet" href="{% static 'layui/css/layui.css' %}">
    <link rel="stylesheet" href="{% static 'css/login.css' %}">

</head>

<body class="signin">
    <div class="signinpanel">
        <!-- <div class="title">欢迎登录智能教室管理系统</div> -->

        <form class="form" method="post" action="/login/">
            {% csrf_token %}
            <script language="javascript">
                /* alert( "密码错误请重新输入！" ); //在页面上弹出对话框  */
            </script>
            <p class="formTitle">登录</p>
            <div class="form-group">
                <label class="control-label" for="username">账&nbsp;号</label>
                <input type="text" class="form-control" id="username" placeholder="请输入工号" name="sid" required="required">

                <label class="control-label" for="username" style="display:none;"></label>
            </div><br>
            <div class="form-group">
                <label class="control-label" for="password">密&nbsp;码</label>
                <input type="password" class="form-control" id="password" name="password" required="required" placeholder="请输入密码" />
                <label class="control-label" for="username" style="display:none;"></label>
            </div><br>
            <span style="color:red;">{{ error_msg }}</span>
            <input type="submit" class="btn" value="登&nbsp;录"/>&nbsp;&nbsp;&nbsp;
            <label class="control-label" for="password"><a href="" style="color:blue;">忘记密码</a></label>
        </form>
    </div>
    </div>
</body>